package com.tvunetworks.center.user.model;

import com.tvunetworks.center.gs.model.Device;

import java.io.Serializable;
import java.util.Comparator;
/**
 * @program:
 * @description:
 * @author HenryChen
 * @create: 5/29/2019 12:17 PM
 **/

public class ComparatorPostion implements Comparator<Device>,Serializable{
	private static final long serialVersionUID = -7411132073037713238L;

	/**
	 *
	 * @param r0 r0
	 * @param r1 r1
	 * @return int
	 */
	public int compare(Device r0, Device r1) {
				return (int)(r0.getPostion() - r1.getPostion());
	}
}
